package com.fulihui.usercore.api;

import org.near.servicesupport.result.BaseResult;
import org.near.servicesupport.result.TMultiResult;

import com.fulihui.usercore.dto.UnionidOpenidDTO;
import com.fulihui.usercore.request.user.UnionidOpenidBatchInsertRequest;

/**
 * unionid与openid关联服务
 * @author Created by Willard.Hu on 2016/8/17 0017.
 */
@Deprecated
public interface UnionidOpenidService {

    /**
     * 微信unionid与公众号openid绑定关系的批量插入
     * @param request {@link UnionidOpenidBatchInsertRequest}
     * @return 服务处理结果 {@link BaseResult}
     */
    BaseResult batchInsert(UnionidOpenidBatchInsertRequest request);

    /**
     * 通过unionid批量查询公众号openid
     * @param request {@link UnionidOpenidBatchInsertRequest}
     * @return 查询结果集 {@link UnionidOpenidDTO}
     */
    TMultiResult<UnionidOpenidDTO> query(UnionidOpenidBatchInsertRequest request);
}
